<template>
    <div class="eye-report">
      <div class="page-head">
        <!-- 解决html2Canvas截取是不支持object-fit -->
        <div class="tel-box2" style="height: 60px;">
          <!-- <img
            style="max-width: 100%;max-height: 100%"
            :src="'https://cos.drbrain.net'+companyInfo.logo"
          /> -->
        </div>
        <div class="tel-box2" style="align-items: center;justify-content: center;">{{ props.hospitalName}}</div>
        <div class="tel-box2"></div>
      </div>
      <div class="line-box">
        <div class="line-right"></div>
        <div class="line-right2"></div>
      </div>
  
      <slot></slot>
  
      <div class="pdf-footer">
        <div class="company-name">医院地址:{{props.hospitalSite}}</div>
        <div class="tel-box">
          <img
            style="width: 20px;height: 21px;margin-right: 8px;"
            src="@/assets/img/tel.png"
          />
          电话：{{props.hospitalPhone}}
        </div>
      </div>
    </div>
  </template>
  
  <script setup>
    import {defineProps,reactive,ref} from 'vue'
    const props = defineProps({
      hospitalName:{
        type:String
      },
      hospitalPhone:{
        type:String
      },
      hospitalSite:{
        type:String
      }
    })
  </script>
  
  <style lang="scss" scoped>
  .eye-report {
    height: 1350px;
    position: relative;
    .page-head {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      .tel-box {
        display: flex;
        align-items: center;
        color: #333333;
        font-size: 17px;
        width: 240px;
      }
      .tel-box2 {
        display: flex;
        align-items: center;
        width: 35%;
        font-size: 22px;
        height: 50px;
        font-family: PingFangSC-Medium, PingFang SC;
        font-weight: 500;
        color: #7C7C7C;
      }
    }
    .line-box {
      width: 100%;
      height: 6px;
      background: #FBC400;
      position: relative;
      margin-top: 10px;
      .line-right {
        position: absolute;
        left: 0px;
        right: 41px;
        top: 0px;
        bottom: 0px;
        background: #0F9031;
      }
      .line-right2 {
        position: absolute;
        left: 0px;
        right: 82px;
        top: 0px;
        bottom: 0px;
        background: #014DA2;
      }
    }
    .pdf-footer {
      width: 100%;
      border-top: 1px solid #cbced1;
      position: absolute;
      bottom: 20px;
      left: 0px;
      right: 0px;
      padding-top: 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .company-name {
        font-size: 16px;
        color: #999999;
      }
      .tel-box {
        display: flex;
        align-items: center;
        font-size: 16px;
        color: #999999;
      }
    }
  }
  </style>
  